Loop Structure in Java

51

Loop Structure in Java -

numbers = new int[10];
numbersResult = "The resulting numbers inside Do While loop are:\n";
count = 0;
while (count < 10) {
	numbers[count] = (int) (count*8.87);
	numbersResult += "number " + String.valueOf(numbers[count] + "\n");
	count ++;
}
JOptionPane.showMessageDialog(null, numbersResult);

Comments

Submit
0 Comments